package com.bugman.business;

import com.bugman.entity.Bug;
import com.bugman.entity.Importance;
import com.bugman.entity.Project;
import com.bugman.entity.Status;
import com.bugman.filters.BugFilter;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Flashman
 */

@Local
public interface BugService {

    public void createBug(Bug bug);
    public void updateBug(Bug bug);
    public void deleteBug(Bug bug);
    public Bug getBug(Integer bugId);
    public List<Bug> getBugs(BugFilter filter, Integer count);
    public List<Bug> getLatestBugs(Project project, Integer count);
    public List<Bug> getLatestBugs(Integer count); 
    public Integer getAllBugsCount();
    public Integer getBugsCount(Project project);
    public Status getStatus(Byte idStatus);
    public List<Status> getAllStatuses();
    public Importance getImportance(Byte idImportance);
    public List<Importance> getAllImportances();
}